<!DOCTYPE html>
<html lang="zh-CN">
@include('base.head')
<body>
@extends('index.base')
@if(session('__Ajax_RedirectFunc_status') == true)
    <div>
        <div class="alert alert-success alert-dismissible fade in" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">&times;</span>
            </button>
            <h3>成功</h3>
            <p><?php echo session('__Ajax_RedirectFunc_message');?></p>
            <p><?php echo session('__Ajax_RedirectFunc_plugin');?></p>
        </div>
    </div>
@endif
@if(session('__Ajax_RedirectFunc_status') === false)
    <div >
        <div class="alert alert-danger alert-dismissible fade in" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">&times;</span>
            </button>
            <h3>失败</h3>
            <p><?php echo session('__Ajax_RedirectFunc_message');?></p>
            <p><?php echo session('__Ajax_RedirectFunc_plugin');?></p>
        </div>
    </div>
@endif
<div class="container-fluid">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                @if(session('__Ajax_RedirectFunc_status') == true)
                    <div>
                        <div class="alert alert-success alert-dismissible fade in" role="alert">
                            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                <span aria-hidden="true">&times;</span>
                            </button>
                            <h3>成功</h3>
                            <p><?php echo session('__Ajax_RedirectFunc_message');?></p>
                            <p><?php echo session('__Ajax_RedirectFunc_plugin');?></p>
                        </div>
                    </div>
                @endif
                @if(session('__Ajax_RedirectFunc_status') === false)
                    <div >
                        <div class="alert alert-danger alert-dismissible fade in" role="alert">
                            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                <span aria-hidden="true">&times;</span>
                            </button>
                            <h3>失败</h3>
                            <p><?php echo session('__Ajax_RedirectFunc_message');?></p>
                            <p><?php echo session('__Ajax_RedirectFunc_plugin');?></p>
                        </div>
                    </div>
                @endif
                    <h2>我的收藏</h2>
                    <hr>
                <div class="panel-body" >
                    <table class="table table-responsive table-condensed table-hover table-striped">
                        <thead>
                        <tr>
                            <th>商品样图</th>
                            <th>商品名称</th>
                            <th>商品介绍</th>
                            <th>上架时间</th>
                            <th>商品价格</th>
                        </tr>
                        </thead>
                        <tbody>
                        @foreach($goodsData as $data)
                            <tr>
                                <td>
                                    <img style="width: 150px;height: 150px" src="/images/{{$data->goods_image}}">
                                </td>
                                <td><a href="/goodsInfo/{{$data->goods_id}}">{{$data->goods_name}}</a></td>
                                <td>{{$data->goods_info}}</td>
                                <td>{{$data->goods_time}}</td>
                                <td>{{$data->goods_price}}元</td>
                        @endforeach
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>